package com.neusoft.feign;

import com.neusoft.po.Cart;
import com.neusoft.po.CommonResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class CartFeignClientCallBack implements CartFeignClient {


    @Override
    public CommonResult<List<Cart>> listCart(@Param("userId") String userId, @Param("businessId") Integer businessId) {
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }

    @Override
    public CommonResult<Integer> removeCart(@Param("userId") String userId, @Param("businessId") Integer businessId) {
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }


}
